import { ClockManager } from "../../manager/ClockManager";
import { SActiveToClient } from "../../../../Message/Public/SActiveToClient";
import { ConsumeDataUtil } from "./ConsumeDataUtil";
type int = number;
//class ConsumeDayData
    
    export  class ConsumeDayData
    {
        

        public static get allActiveResTime(): int
        {
            var loc1=0;
            if (ConsumeDayData.allActiveEndTime) 
            {
                loc1 = (ConsumeDayData.allActiveEndTime.time - ClockManager.instance.nowDate.time) / 1000;
                loc1 = loc1 > 0 ? loc1 : 0;
            }
            return loc1;
        }

        public static get hadGetDayCodes(): Array<any>
        {
            return ConsumeDayData._consumeDataUtil.hadGetDayCodes;
        }

        public static set hadGetDayCodes(arg1: Array<any>)
        {
            ConsumeDayData._consumeDataUtil.hadGetDayCodes = arg1;
            return;
        }

        public static set activeToClient(arg1: SActiveToClient)
        {
            ConsumeDayData._consumeDataUtil.activeToClient = arg1;
            return;
        }

        public static get activeToClient(): SActiveToClient
        {
            return ConsumeDayData._consumeDataUtil.activeToClient;
        }

        public static get consumeType(): int
        {
            return ConsumeDayData._consumeDataUtil.consumeType;
        }

        public static get isRechargeActive(): Boolean
        {
            return ConsumeDayData._consumeDataUtil.isRechargeActive;
        }

        public static get restTime(): int
        {
            return ConsumeDayData._consumeDataUtil.restTime;
        }

        public static isHadGet(arg1: int): Boolean
        {
            return ConsumeDayData._consumeDataUtil.isHadGetDay(arg1);
        }

        public static isHadGetAllGift(arg1: int, arg2: Boolean=true): Boolean
        {
            return ConsumeDayData._consumeDataUtil.isHadGetAllGift(arg1, arg2);
        }

        public static isCanGetGift(arg1: Boolean=true): Boolean
        {
            return ConsumeDayData._consumeDataUtil.isCanGetGift(arg1);
        }

        /* internal */ static /* var */_consumeDataUtil: ConsumeDataUtil;

        public static /* var */allActiveEndTime: Date;
    }

            ConsumeDayData._consumeDataUtil = new ConsumeDataUtil();
        